public class TernaryIfElse {

    static int ternary(int i) {
        return i < 100 ? i * 100 : i / 100;
    }

    static int standardIfElse(int i, int j) {
        if (i < 100)
            return i * 100;
        else
            return i / 100;
    }

    public static void main(String[] args) {
        System.out.println(ternary(10));
        System.out.println(ternary(100));
        System.out.println(standardIfElse(10, 100));
        System.out.println(standardIfElse(100, 100));
    }
}
